package model

const (
	ResponseOK = "Success"
)

type HttpResponse struct {
	Code     int         `json:"code"`           //错误码，为0时请求成功
	CodeDesc string      `json:"codeDesc"`       //错误描述，错误码为0时请求返回数据
	Data     interface{} `json:"data,omitempty"` //数据
}

type TB2RequestSearchUserInfoReqBody struct {
	UserName  string `json:"user_name"`
	Telephone string `json:"telephone"`
}

type TB2RequestSearchUserFinanceReqBody struct {
	UserName  string `json:"user_name"`
	Telephone string `json:"telephone"`
	WaterType int    `json:"water_type"`
	PageStart int    `json:"page_start"`
	PageSize  int    `json:"page_size"`
}

type TB2RequestBatchUserInfo struct {
	Ids []int `json:"ids"`
}

type ReqHead struct {
	ClientType string `json:"clientType"`
}

type TB2RequestSearchUserFinance struct {
	ReqBody TB2RequestSearchUserFinanceReqBody `json:"reqBody"`
	ReqHead ReqHead                            `json:"reqHead"`
}

type TB2RequestSearchUserInfo struct {
	ReqBody TB2RequestSearchUserInfoReqBody `json:"reqBody"`
	ReqHead ReqHead                         `json:"reqHead"`
}

type UserInfoResponse struct {
	RealInfo UserRealInfo `json:"user_real_info"`
	UserInfo UserInfo     `json:"user_info"`
}

type UserFinanceResponse struct {
	UserFinanceRecordList []UserFinanceRecord `json:"user_finance_record"`
	Total                 int64               `json:"total"`
}
type BatchUserResponse struct {
	Users []UserInfo `json:"users"`
}
